package com.hzxy.yiyid.web.module.controller;

import com.hzxy.yiyid.web.common.base.BaseResult;
import com.hzxy.yiyid.web.module.service.SolarTermsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import org.slf4j.Logger;

@RestController
@RequestMapping("/solar")
@Api(tags = "24节气相关接口")
public class SolarTermsController {
    private static final Logger logger = LoggerFactory.getLogger(SolarTermsController.class);

    @Autowired
    private SolarTermsService solarTermsService;
    @GetMapping()
    @ApiOperation(value = "通过点击获取当前日期",notes = "通过点击获取当前日期")
    public BaseResult<?> getSolarInfo(){
        return solarTermsService.getSolarInfo();
    }

}
